<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var a = prompt("1.登录2.退出");
			switch (a) {
				case "1":
					//登录
					/* do {
						var name = prompt("请输入用户名");
						var password = prompt("请输入密码");
						if (name === "tom" && password === "123") {
							break;
						}
					} while (true); */
					//系统功能
					do {
						var b = prompt("1.添加2.删除3.遍历4.修改5.退出");
						switch (b) {
							case "1":
								var stuNo = prompt("请输入学号");
								var stuName = prompt("请输入姓名");
								break;
							case "2":
								break;
							case "3":
								alert(stuNo);
								alert(stuName);
								break;
							case "4":
								break;
							case "5":
								break;
						}
					} while (true);
					break;
				case "2":
					break;
			}
		</script>
	</head>
	<body>
	</body>
</html>
